package com.ruibang.glass.quality.mapper;


import com.ruibang.glass.quality.domain.req.BcStationHqDetailReq;
import com.ruibang.glass.quality.domain.resp.DecideResultResp;
import com.ruibang.glass.quality.domain.resp.QualityGlassResp;
import com.ruibang.glass.quality.entity.BcStationHqDetail;
import com.ruibang.glass.quality.entity.GlassBindTest;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface BcStationHqDetailMapper extends CommonMapper<BcStationHqDetail> {

    @DS("hot2_bc2mes")
    List<BcStationHqDetail> queryDataByTime(BcStationHqDetailReq bcStationHqDetailReq);

    @DS("hot2_bc2mes")
    List<QualityGlassResp> queryGlassIdByParam(@Param("glassId") String glassId);

    List<DecideResultResp> queryDecideResult(@Param("glassIds") List<String> glassIds);
}
